;*******************************************************************************
; (C) 2006 Keith S. Robertson - IE_KEY.INC
;-------------------------------------------------------------------------------
;
; KEY Format Files Include
;
;*******************************************************************************


;-------------------------------------------------------------------------------
; Constants
;-------------------------------------------------------------------------------

KEY_ACCESS_FILE		equ 0
KEY_ACCESS_MEMORY	equ 1

;-------------------------------------------------------------------------------
; Structures
;-------------------------------------------------------------------------------

KEY_BIF_ENTRY_RECORD	STRUCT
	BIFFileLength		DD		?
    BIFNameOffset		DD		?
    BIFNameLength		DW		?
    BIFLocation			DW		?
KEY_BIF_ENTRY_RECORD	ENDS


KEY_RES_ENTRY_RECORD	STRUCT
	ResName				DB 8 dup (?)
    ResType				DW		?
    ResLocator			DD		?
KEY_RES_ENTRY_RECORD	ENDS


;-------------------------------------------------------------------------------
; Prototypes
;-------------------------------------------------------------------------------
KEYOpenFile			PROTO	:DWORD
KEYCloseFile		PROTO	:DWORD

KEYReadHeader		PROTO	:DWORD, :DWORD
KEYReadBody			PROTO	:DWORD, :DWORD
KEYReadAll			PROTO	:DWORD, :DWORD

KEYNoBifEntries		PROTO	:DWORD, :DWORD, :DWORD
KEYNoResEntries		PROTO	:DWORD, :DWORD, :DWORD
KEYBifEntry			PROTO	:DWORD, :DWORD, :DWORD
KEYResEntry			PROTO	:DWORD, :DWORD, :DWORD
KEYBifName			PROTO	:DWORD, :DWORD, :DWORD

KEYBifEntriesOffset	PROTO	:DWORD, :DWORD, :DWORD
KEYResEntriesOffset	PROTO	:DWORD, :DWORD, :DWORD

